package io.bdmc.modules.bss.service.impl;

import io.bdmc.common.annotation.DataFilter;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.SmkHeartbeat;
import io.bdmc.modules.bss.mapper.SmkHeartbeatMapper;
import io.bdmc.modules.bss.model.HeartbeatParam;
import io.bdmc.modules.bss.service.ISmkHeartbeatService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author huanglu
 * @since 2019-01-22
 */
@Service
public class SmkHeartbeatServiceImpl extends ServiceImpl<SmkHeartbeatMapper, SmkHeartbeat>
        implements ISmkHeartbeatService {

    @Autowired
    private SmkHeartbeatMapper heartMapper;

    @DataFilter(tableAlias = "d", user = false)
    @Override
    public MyPage<SmkHeartbeat> mySelectPage(MyPage<SmkHeartbeat> page, HeartbeatParam param) {
        return heartMapper.mySelectPage(page,param);
    }

    @Override
    public Integer deleteHeartbeat() {
        return heartMapper.deleteHeartbeat();
    }

}
